<?php $this->load->view('global_header'); ?>

<link rel="stylesheet" type="text/css" href="/assets/css/photoCreate.css"/>
<div class="error">
    <?php echo validation_errors(); ?>
    <?php echo isset($error)?$error:''; ?>
</div>
<form action="<?php echo base_url(); ?>admin.php?c=photo&m=add" method="post" enctype="multipart/form-data">
    <div class="form_row">
        <label for="label">标签</label>
        <input type="text" id="label" name="label" value="<?php echo set_value('label') ?>"/> *
    </div>
    <div class="help">注: 图片必须为 JPG | GIF | PNG 格式且小于400KB，尺寸小于 1024 X 768 像素</div>
    <div class="form_row">
        <label for="photo">图片</label>
        <input type="file" id="photo" name="photo"/>
    </div>
    <div class="form_row form_btn">
        <input type="submit" name="submit" value="上传"/>
    </div>
</form>

<?php $this->load->view('global_footer'); ?>